namespace LDNS.Models
{
    /// <summary>
    /// DNS回答记录模型
    /// 作者：huobing
    /// </summary>
    public class DnsAnswerRecord
    {
        /// <summary>
        /// 域名
        /// </summary>
        public string Domain { get; set; } = string.Empty;
        
        /// <summary>
        /// 记录类型
        /// </summary>
        public ushort RecordType { get; set; }
        
        /// <summary>
        /// 记录类
        /// </summary>
        public ushort RecordClass { get; set; }
        
        /// <summary>
        /// 生存时间（秒）
        /// </summary>
        public int Ttl { get; set; }
        
        /// <summary>
        /// 数据长度
        /// </summary>
        public ushort DataLength { get; set; }
        
        /// <summary>
        /// IP地址
        /// </summary>
        public string IpAddress { get; set; } = string.Empty;
    }
}